package com.victor.pomelo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.victor.pomelo.model.Role;
import com.victor.pomelo.model.User;

public interface RoleMapper {
	@Select("SELECT * FROM user WHERE id = #{Id}")
	User getUser(@Param("Id") String userId);

	public Role findById(int roleId);

	public boolean createRole(Role role);

	public boolean updateRole(Role role);

	public boolean deleteRole(Role role);

//	public List<Role> 
	public List<Role> listAll();
}